


#ifndef	TIMER_DRIVER_H
#define	TIMER_DRIVER_H
#include <p18f4550.h>
#include "GPD_Driver.h"
#include "stdtypedef.h"

//Variables Externas
extern volatile unsigned char Carga1s;
//Variables Locales


//Prototipado de funciones
void initTimer0(void);
void StartTimer0(void);
void StopTimer0(void);
void timer_isr(void);
void ISRBajaPrioridad(void);

/*****Defines*****/
// T0CON
#define TMR0ON		7
#define T08BIT		6
#define T0CS			5
#define T0SE			4
#define PSA			3
#define T0PS2		2
#define T0PS1		1
#define T0PS0		0

//INTCON
#define GIE			7
#define PEIE			6
#define TMR0IE		5
#define INT0IE		4
#define RBIE			3
#define TMR0IF		2
#define INT0IF		1
#define RBIF			0




#endif